39e62095e4ed6e83b6977ceffc9b3de39314a5d6,Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java,HumanPlayer,announceXMana,#number#number#String#Game#Ability#,809

Before Change


    public int announceXMana(int min, int max, String message, Game game, Ability ability) {
        int xValue = 0;
        updateGameStatePriority("announceXMana", game);
        game.fireGetAmountEvent(playerId, message, min, max);
        waitForIntegerResponse(game);
        if (response != null && response.getInteger() != null) {
            xValue = response.getInteger();
        }

After Change


     * @return
     */
    @Override
    public int announceXMana(int min, int max, String message, Game game, Ability ability) {
        int xValue = 0;
        updateGameStatePriority("announceXMana", game);
        do {
            game.fireGetAmountEvent(playerId, message, min, max);
            waitForResponse(game);
        } while (response.getInteger() == null && !abort);
        if (response != null && response.getInteger() != null) {
            xValue = response.getInteger();
        }